﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class App_Form_QLCongVan_CongVan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // Đăng ký service
        if (!IsPostBack)
        {
            ScriptManager.GetCurrent(this).Services.Add(new ServiceReference("~/Service/DanhMuc.svc"));
            string b_qr = Request.QueryString["so_id"];
            DanhMuc dm = new DanhMuc();
            string b_chuoi = "''";
            if (!string.IsNullOrEmpty(b_qr))
                b_chuoi = dm.Fs_VANBAN_CT(b_qr);
            if ("loi:".IndexOf(b_chuoi) > -1) b_chuoi ="'" +b_chuoi + "'";
            ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "P_KT("+b_chuoi+");", true);
        }
    }
}